package cn.wolfcode.crm.util;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

//打卡签到类
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class PunchCard {

    private int normalSignIn;//准点签到
    private int faultSignIn;//迟到

    private int normalSignOut;//准点签退
    private int faultSignOut;//早退

    private boolean success = true;
    private String msg;

    public PunchCard(String msg) {
        this.success = false;
        this.msg = msg;
    }

    //工作天数(来了就算工作了)
    public int getSigninTotal()
    {
        return (normalSignIn + faultSignIn);
    }

}
